package com.xbongbong.saas.model;

import com.xbongbong.paas.domain.entity.PaasProcessRichTextEntity;

import java.util.List;
import java.util.Map;


/**
 * @author bomfish
 */
public interface PaasProcessRichTextModel {
   Long insert(PaasProcessRichTextEntity entity);

   void insertBatch(List<PaasProcessRichTextEntity> list);

   List<PaasProcessRichTextEntity> findEntities(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   void update(PaasProcessRichTextEntity entity);

   void updateByTaskId(PaasProcessRichTextEntity entity);

   PaasProcessRichTextEntity getByKey(Long key, String corpid);

   PaasProcessRichTextEntity getByTaskId(Long taskId, String corpid);

    boolean hasData(Map<String, Object> params);

    Integer countData(Map<String, Object> params);

    void deleteCompelete(String corpid, Long formId, List<Integer> delList, Integer afterDel);
}
